public class Max1 {
        public static int max(int a, int b) {
            return(a > b ? a : b);
        }
        public static  int max(int a, int b, int c) {
            int maxNum = max(a, b);
            int ret = max(c,maxNum);
            return ret;

        }
    public static void main(String[] args) {
            int m = max(5,6,7);
            System.out.println(m);

    }
}
